package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysCartMapper extends BaseMapper<SysCart> {
    List<SysCart> findByUserIdLimit(int userId);

    List<SysCart> findAll();

    int insertOld(int userId, int goodsId, int goodsNum);

    int deleteByIdOld(int id);

    int countByUserIdAndGoodsId(int userId,int goodsId);
}
